﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/GoPlay.Master" AutoEventWireup="true" CodeBehind="SingleItem.aspx.cs" Inherits="WebTriple7.PaymentInGo.SingleItem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Js/PaymentInGo/ItemIn.js"></script>
    <script type="text/javascript">
        pages_paymentIn_ItemIn.gateWayId = <%=(int) Config.Enum.GateWay.Ebank %>;
        var GoItemIn = {
            AmountIn: <%=Info.AmountIn %>,
            ReceiveAu: <%=Info.ReceiveAu %>,
            ReceiveAg: <%=Info.ReceiveAg %>
        };

        function loadReceive() {
            var money = $("#txtNumAmount").val();
            $("#spAuReceive").html(COMMON.roundNumber(money * GoItemIn.ReceiveAu / GoItemIn.AmountIn,0));
            $("#spAgReceive").html(COMMON.roundNumber(money * GoItemIn.ReceiveAg / GoItemIn.AmountIn,0));
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        Nhập số Vcoin:
        <input type="text" id="txtNumAmount" onkeydown="return COMMON.validateDigitQuantity(event)" value="0" onkeyup="loadReceive()"/>
        <br/>
        Số vàng: <span id="spAuReceive"></span>
        <br/>
        Số bạc: <span id="spAgReceive"></span>
        <br/>
        <input type="button" value="Đồng ý" id="btnBuyItemInSingle"/>
    </div>
</asp:Content>
